<template>
  <div>
    <DeviceVerificationView :id.sync="editId"></DeviceVerificationView>
  </div>
</template>
<script>
const DeviceManage = import("@/ModuleDeviceManage");
// import DeviceCalibrationView from "../../ModuleDeviceManage/views/DeviceCalibration/DeviceCalibration/DeviceCalibrationView.vue";

export default {
  name: "AuditDeviceVerificationVerifyDialog",
  components: { DeviceVerificationView: DeviceManage.DeviceVerificationView },
  // components: { DeviceCalibrationView: DeviceCalibrationView },
  props: {
    editId: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      loading: true,
    };
  },
  watch: {},
  created() { },
  methods: {
    innerPass(obj) {
      DeviceManage.Api["DeviceVerification"]
        .verifyPass(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerReject(obj) {
      DeviceManage.Api["DeviceVerification"]
        .verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerWithdraw(obj) {
      obj.auditStatus = 60;

      DeviceManage.Api["DeviceVerification"]
        .verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
  },
};
</script>
<style scoped>
</style>
